home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Temperature / TemperatureEngine.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-29  |  761 bĀ   |  34 lines  |  [TEXT/CWIE]

  1. /* TemperatureEngine.h -- application-specific data management */
  2.  
  3. #pragma once
  4.  
  5. #include "AMEngine.h"
  6.  
  7. /* Define the creator type and file type for your application. */
  8.  
  9. #define kSignature        'XXXX'
  10. #define kFileType        'TEXT'
  11.  
  12. #include "DDocData.h"
  13.  
  14. //----------
  15. struct TemperatureEngine {
  16.     AMEngine        super;
  17. };
  18. typedef struct TemperatureEngine TemperatureEngine;
  19.  
  20. //----------
  21. TemperatureEngine*        NewTemperatureEngine ();
  22.  
  23. //----------
  24. void    TemperatureEngine_Init        (TemperatureEngine*        self);
  25. void    TemperatureEngine_Free        (TemperatureEngine*        self);
  26.  
  27. DDocData*    GetDocData    (TemperatureEngine*        self);
  28.  
  29. // overrides:
  30. void    InitData        (AMEngine*        engine);
  31. void    DisposeData        (AMEngine*        engine);
  32. void    ReadFile        (AMEngine*        engine);
  33. void    WriteFile        (AMEngine*        engine);
  34.